﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Home.Site
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Download",
                url: "download/{f}",
                defaults: new { controller = "Helper", action = "Download", f = UrlParameter.Optional }
            );

            routes.MapRoute(
                name: "UserProfile",
                url: "profile",
                defaults: new {controller = "Account", action = "UserProfile" }
            );


            routes.MapRoute(
                name: "Photoalbums",
                url: "photoalbums",
                defaults: new {controller = "Album", action = "All" }
            );
            

             routes.MapRoute(
                name: "Games",
                url: "games",
                defaults: new {controller = "review", action = "games" }
            );

             routes.MapRoute(
                name: "Interest",
                url: "interest",
                defaults: new { controller = "review", action = "interest" }
            );

             routes.MapRoute(
                name: "Music",
                url: "music",
                defaults: new { controller = "review", action = "music" }
            );

             routes.MapRoute(
                 name: "Walks",
                 url: "walks",
                 defaults: new { controller = "review", action = "walks" }
             );

             routes.MapRoute(
                  name: "Film",
                  url: "film",
                  defaults: new { controller = "review", action = "film" }
              );

            routes.MapRoute(
                name: "Contact",
                url: "contact",
                defaults: new { controller = "Home", action = "contact" }
            );
            
            routes.MapRoute(
                name: "Content",
                url: "content/{id}",
                defaults: new { controller = "review", action = "Content", id = UrlParameter.Optional }
            );
            
            routes.MapRoute(
                name: "Userinfo",
                url: "userinfo/{user}",
                defaults: new { controller = "account", action = "userinfo", user = UrlParameter.Optional }
            );
            

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );

            
        }
    }
}